package edu.cmu.cs.stage3.alice.authoringtool.util;

/**
 * @author Jason Pratt
 */
public class GUIElementContainerListener extends java.awt.event.ContainerAdapter {
	protected final static GUIElementContainerListener staticListener = new GUIElementContainerListener();

	public static GUIElementContainerListener getStaticListener() {
		return staticListener;
	}

	//Rem @Override
	public void componentRemoved( java.awt.event.ContainerEvent ev ) {
		if( ev.getChild() instanceof edu.cmu.cs.stage3.alice.authoringtool.util.Releasable ) {
			((edu.cmu.cs.stage3.alice.authoringtool.util.Releasable)ev.getChild()).release();
		}
	}

}